package com.wang.exam.service;

import com.wang.exam.mapper.StudentGradMapper;
import com.wang.exam.pojo.Grade;
import com.wang.exam.pojo.StudentGrade;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class StudentGradeService {
    @Autowired
    StudentGradMapper studentGradMapper;

    public List<Grade> getGrades(Map<String,Object> map){
        return studentGradMapper.getGrades(map);
    }
    public int AddGrade(Map<String,Object> map){
        return studentGradMapper.AddGrade(map);
    }
    public List<Grade> getGradeLists(Map<String,Object> map){
        return studentGradMapper.getGradeLists(map);
    }
    public List<StudentGrade> getStudentsGrades(){
        return studentGradMapper.getStudentsGrades();
    };
    public int upStudentsGradesLists(Map<String,Object> map){
        return studentGradMapper.upStudentsGradesLists(map);
    }
    public int deleteStudentsGradesLists(Map<String,Object> map){
        return studentGradMapper.deleteStudentsGradesLists(map);
    }
}
